<include file="../Public/header" />
<load href="__PUBLIC__/Js/UserJs.js" />
<script language="javascript">
//<!--
var PUBLIC	 =	 '/Public';
ThinkAjax.image = [	 '/Public/Images/loading2.gif', '/Public/Images/ok.gif','/Public/Images/update.gif' ]
ThinkAjax.updateTip	=	'发送中～';
function loginHandle(data,status){
if (status==1)
{
$('result').innerHTML	=	'<span style="color:blue"><img SRC="/Public/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > 登录成功！3 秒后跳转～</span>';
$('form1').reset();
window.location = '/index.php/Public';
}else{
	fleshVerify();
}
}
function keydown(e){
	var e = e || event;
	if (e.keyCode==13)
	{
	ThinkAjax.sendForm('form1','/index.php/Public/checkLogin/',loginHandle,'result');
	}
}
function fleshVerify(type){
//重载验证码
var timenow = new Date().getTime();
if (type)
{
$('verifyImg').src= '/index.php/Public/verify/adv/1/'+timenow;
}else{
$('verifyImg').src= '/3mmm/mmm/index.php/Public/verify/'+timenow;
}

}

//-->

function yhServer(Ful,lx){
	var str = $F(Ful).replace(/^\s+|\s+$/g,"");
	var re = /[^(\w){6,20}$]/g;
	str = str.replace(re,"");
	document.getElementById(Ful).value = str;
	if (str != ""){
		if(lx==0){ThinkAjax.send('__APP__/Fck/check_shopid/','ajax=1&shopid='+str,'',Ful+'1');}
		if(lx==1){ThinkAjax.send('__APP__/Fck/check_reid/','ajax=1&reid='+str,'',Ful+'1');}
		if(lx==2){ThinkAjax.send('__APP__/Fck/check_fid/','ajax=1&fid='+str,'',Ful+'1');}
		if(lx==3){ThinkAjax.send('__APP__/Fck/check_userid/','ajax=1&userid='+str,'',Ful+'1');}
	}
}

function guolv(Ful){
	var str = $F(Ful).replace(/^\s+|\s+$/g,"");
	var re = /[^(\w){6,20}$]/g;
	str = str.replace(re,"");
	document.getElementById(Ful).value = str;
}
function checkmobile(Ful){
    var mobile = document.getElementById('UserTel').value;
	var code = document.getElementById('Code').value;
    if(mobile == ''){
		alert('手机号不能为空');
		return false;
	}

    var partten = /^1[3,4,5,7,8]\d{9}$/;
     
    if(!partten.test(mobile)){
        alert('请输入正确的手机号码格式');
        return false;
    }

	if(code == ''){
		alert('验证码不能为空');
		return false;
	}
	ThinkAjax.send('__APP__/Sms/checkmobile/','ajax=1&mobile='+mobile+'&code='+code,'',Ful+'1');
}
window.onload = function(){
	fleshVerify();
}
</script>
<style>
#agentall{ width:100%;}
#agentall li{ width:230px; float:left; padding:5px; line-height:22px;}
</style>
<table border="0" align="center" cellpadding="0" cellspacing="0" style="margin:30px 0px;">
  <tr>
    <td>
<div class="ncenter_box">
<div class="accounttitle"><h1>注册会员 </h1></div>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tab1">
  <tr>
    <td>
    <form method='post' id="form1" name="form1" action="__URL__/us_regAC"/>
    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tab4">
    
      <tr>
        <td width="20%" align="right"><span class="zc_hong">*</span> 推荐人：</td>
        <td width="20%"><input name="RID" id="RID" type="text" value="{$rs['user_id']}" class="ipt" onKeyUp="guolv(this.name)"  onBlur="javascript:yhServer(this.name,'1');" /></td>
        <td width="60%"><div id="RID1" class="info"><div id="1" class="focus_r"><div class="msg_tip">请填写推荐人。</div></div></div> </td>
      </tr>
     
      <tr style="display:none">
        <td align="right"><span class="zc_hong">*</span> 接点人：</td>
        <td><input name="FID" id="FID" type="text"  value="" class="ipt" onKeyUp="guolv(this.name)" onBlur="javascript:yhServer(this.name,'2');" /></td>
        <td><div id="FID1" class="info"><div id="2" class="focus_r"><div class="msg_tip">请填写接点人。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> {$User_namex}：</td>
        <td>
        <input name="UserID" id="UserID" type="text"  value="" class="ipt" onBlur="javascript:yhServer(this.name,'3');"/>
        </td>
        <td><div id="UserID1" class="info"><div id="3" class="focus_r"><div class="msg_tip">此会员编号用于登录系统使用。</div></div></div></td>
      </tr>
      <tr style="display:none">
        <td align="right"><span class="zc_hong">*</span> {$Nick_namex}：</td>
        <td><input name="nickname" type="text" class="ipt" id="nickname" onKeyUp="guolv(this.name);"/></td>
        <td><div id="nickname1" class="info"><div id="14" class="focus_r"><div class="msg_tip">请输入您的昵称。</div></div></div></td>
      </tr>
      <tr style="display:none">
        <td align="right">所在区域：</td>
        <td><select name="TPL" id="TPL">
            <option value="0" {$TPL[0]}> 左区 </option>
            <option value="1" {$TPL[1]}> 右区 </option>
        </select></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" style="height:5px;"><hr></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 一级密码：</td>
        <td><input name="Password" type="password" class="ipt"  id="Password" onblur="yhPass(this.name);" value=""/></td>
        <td><div id="Password1" class="info"><div id="4" class="focus_r"><div class="msg_tip">请使用字母加数字或符号的组合密码。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 确认一级密码：</td>
        <td><input name="rePassword" type="password" class="ipt"  id="rePassword" onblur="yhrePass(this.name,'Password');" value=""/></td>
        <td><div id="rePassword1" class="info"><div id="5" class="focus_r"><div class="msg_tip">确认一级密码。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 二级密码：</td>
        <td><input name="PassOpen" type="password" class="ipt"  id="PassOpen" onblur="yhPass(this.name);" value=""/></td>
        <td><div id="PassOpen1" class="info"><div id="6" class="focus_r"><div class="msg_tip">请使用字母加数字或符号的组合密码。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 确认二级密码：</td>
        <td><input name="rePassOpen" type="password" class="ipt"  id="rePassOpen" onblur="yhrePass(this.name,'PassOpen');" value=""/></td>
        <td><div id="rePassOpen1" class="info"><div id="7" class="focus_r"><div class="msg_tip">确认二级密码。</div></div></div></td>
      </tr>
     
    
      <tr>
        <td colspan="3" style="height:5px;"><hr></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 开户银行：</td>
        <td><select name="BankName" onChange="javasctip:bank_us(this.value);">
          <volist name='bank' id='voo'>
              <option value="{$bank[$key]}">{$bank[$key]}</option>
          </volist>
        </select></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> <span id="bank_id"><eq name="bank[0]" value="财付通">帐号<else />银行账号</eq></span>：</td>
        <td><input name="BankCard" type="text" class="ipt" id="BankCard" onKeyUp="javascript:Null_Full(this.name)" value="" maxlength="19" /></td>
        <td><div id="BankCard1" class="info"><div id="8" class="focus_r"><div class="msg_tip">请输入账号。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span> 开户姓名：</td>
        <td><input name="UserName" type="text" class="ipt"  id="UserName" onKeyUp="javascript:Null_Full(this.name)" value="" maxlength="10" /></td>
        <td><div id="UserName1" class="info"><div id="9" class="focus_r"><div class="msg_tip">请输入您的姓名。</div></div></div></td>
      </tr>
      <tr>
        <td align="right">省份：</td>
        <td><select name="BankProvince" id="s1" >
            <option></option>
          </select></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="right">城市：</td>
        <td><select name="BankCity" id="s2" >
            <option></option>
          </select></td>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td align="right">详细开户地址：</td>
        <td><input name="BankAddress" type="text" class="ipt" id="BankAddress" value="" /></td>
        <td><div id="BankAddress1" class="info"><div id="10" class="focus_r"><div class="msg_tip">请输入您的详细开户地址。</div></div></div></td>
      </tr>
      <script language = JavaScript>
        var s=["s1","s2"];
        var opt0 = ["请选择","请选择"];
        function setup()
        {
            for(i=0;i<s.length-1;i++)
            document.getElementById(s[i]).onchange=new Function("change("+(i+1)+")");
            change(0);
        }
        setup();
      </script>
      <tr>
        <td colspan="3" style="height:5px;"><hr></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span>身份证号：</td>
        <td><input name="UserCode" type="text" class="ipt" id="UserCode" onKeyUp="javascript:Null_Full(this.name)" value="" maxlength="18" /></td>
        <td><div id="UserCode1" class="info"><div id="11" class="focus_r"><div class="msg_tip">请输入您的身份证号。</div></div></div></td>
      </tr>
     <!-- <tr>
        <td align="right">联系地址：</td>
        <td><input name="UserAddress" type="text" class="ipt" id="UserAddress" onFocus="notice('12','')"  onblur="notice('12','none')" onKeyUp="javascript:Null_Full(this.name)" /></td>
        <td><div id="UserAddress1" class="info"><div id="12" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的联系地址。</div></div></div></td>
      </tr>
      <tr>
        <td align="right"><span class="zc_hong">*</span>E-Mail：</td>
        <td><input name="UserEmail" type="text" class="ipt"  id="UserEmail" onFocus="notice('15','')"  onblur="notice('15','none')" onKeyUp="javascript:Null_Full(this.name)" value="44@163.com" /></td>
        <td><div id="UserEmail1" class="info"><div id="15" class="focus_r" style="display:none;"><div class="msg_tip">请输入您的 E-Mail。（找回密码时使用，请认真填写）</div></div></div></td>
      </tr>-->
      <tr>
        <td align="right"><span class="zc_hong">*</span>Q Q：</td>
        <td><input name="qq" type="text" class="ipt"  id="qq" onKeyUp="javascript:Null_Int(this.name)" value="" /></td>
        <td><div id="qq1" class="info"><div id="16" class="focus_r"><div class="msg_tip">请输入您的 Q Q。</div></div></div></td>
      </tr>

	  <tr>
        <td align="right"><span class="zc_hong">*</span>短信验证码：</td>
        <td><input name="TelVerify" type="text" class="ipt"  id="TelVerify" onKeyUp="javascript:Null_Full(this.name)" value=""/></td>
        <td><div id="TelVerify1" class="info"><div id="14" class="focus_r"><div class="msg_tip">请输入短信验证码。</div></div></div></td>
      </tr>
      
       <tr>
        <td align="right"><span class="zc_hong">*</span>推荐人手机号码：</td>
        <td><input name="tuihao" type="text" class="ipt"  id="tuihao" onKeyUp="javascript:Null_Full(this.name)" value=""/></td>
        <td><div id="tuihao1" class="info"><div id="13" class="focus_r"><div class="msg_tip">请输入您推荐人的联系电话。</div></div></div></td>
      </tr>
      
	   <tr>
        <td align="right"><span class="zc_hong">*</span>联系电话：</td>
        <td><input name="UserTel" type="text" class="ipt"  id="UserTel" onKeyUp="javascript:Null_Full(this.name)" value=""/></td>
        <td><div id="UserTel1" class="info"><div id="13" class="focus_r"><div class="msg_tip">请输入您的联系电话。</div></div></div></td>
      </tr>
	  <tr>
		<td align="right"><span class="zc_hong">*</span>获取短信验证码：</td>
       <td><input type="text" name="verify" maxlength="6" placeholder="验证码"  onKeyDown="keydown(event)" id="Code"></td>
	   <td><img id="verifyImg"  src="__URL__/verify/" width="55" onclick="fleshVerify()" border="0" alt="点击刷新验证码" style="cursor:pointer" align="absmiddle" />
	   <input type="button" onclick="javascript:checkmobile('TelValidate')" value="发送" />
	   <div id="TelValidate1" class="info"><div id="24" class="focus_r"><div class="msg_tip"></div></div></div></td>
	  </tr>
	  
        <tr>
            <td align="right">申请级别：</td>
            <td colspan="2">
            <volist name="s9" id="svo">
            <eq name="key" value="0">
            <input name="u_level" type="radio" id="radio" value="{$key}" checked="checked"  />
            <strong><span class="STYLE3">{$s9[$key]}元</span></strong>
            </eq>
            </volist>

            </td>
      </tr>
      <tr>
        <td align="right">&nbsp;</td>
        <td><span class="center">
          <input name="submit1" id="Access" type="submit" class="button_text" value="注册" />
&nbsp;&nbsp;
<input name="重置" type="reset" class="button_text" value="重置" id="重置" />
        </span></td>
        <td>&nbsp;</td>
      </tr>
    </table>
    </form>
    </td>
  </tr>
</table>

</div>

    </td>
  </tr>
</table>

</body>
</html>